<template>
  <div class="box">
    <MyTable>
      <template #title>
        本周热榜 TOP5
      </template>
      <template #content>
        <div class="tag borderBottom" v-for="item in 5" :key="item">
          <div class="tag-left">#区块链</div>
          <div class="tag-right">🔥96</div>
        </div>
      </template>
    </MyTable>
    <MyTable>
      <template #title>
        可能感兴趣的人
      </template>
      <template #more>换一批</template>
      <template #content>
        <div class="card borderBottom" v-for="item in 4" :key="item">
          <div class="head">
            <div class="head-left">李国盛 <span>🚹52岁</span></div>
            <div class="head-right">+关注</div>
          </div>
          <p>研究领域：机电一体化技术</p>
          <p>哈尔滨工业大学：教授</p>
        </div>
      </template>
    </MyTable>
  </div>
</template>

<script>
import MyTable from './components/MyTable.vue';

export default {
  components:{
    MyTable
  }
}
</script>
<style scoped lang="less">
  .tag {
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 60px;
    .tag-left {
      background-color: #f5f5f5;
      padding: 2px 5px;
      border-radius: 2px;
    }
  }
  .card{
    width: 100%;
    .head {
      height: 40px;
      display: flex;
      align-items: center;
      justify-content: space-between;
      span {
        font-size: 12px;
      }
      .head-right {
        background-color: #007aff;
        padding: 4px 10px;
        color: #fff;
        height: 24px;
        line-height: 14px;
        font-size: 12px;
        border-radius: 12px;

      }

    }
    p {
      font-size: 12px;
      margin-bottom: 10px;
    }
    padding: 10px 0;
  }
  
</style>